package com.bc.bcmodel.resp;

import com.bc.bcmodel.consts.MultiLanguage;

import java.math.BigDecimal;
import java.util.Date;

public class UserWithdrawHisResp {


    private String language = "CH";

    private String withdraw_id;
    private Date create_time;
    private String token;
    private BigDecimal withdraw_account;
    private int pay_status;
    private String outside_address;
    private String memo;

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getWithdraw_id() {
        return withdraw_id;
    }

    public void setWithdraw_id(String withdraw_id) {
        this.withdraw_id = withdraw_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public BigDecimal getWithdraw_account() {
        return withdraw_account;
    }

    public void setWithdraw_account(BigDecimal withdraw_account) {
        this.withdraw_account = withdraw_account;
    }

    public String getPay_status() {
        return language.equals("CH") ? MultiLanguage.withdrawStatusMapCH.get(pay_status) : MultiLanguage.withdrawStatusMapEN.get(pay_status);
    }

    public void setPay_status(int pay_status) {
        this.pay_status = pay_status;
    }

    public String getOutside_address() {
        return outside_address.startsWith("0x") ? outside_address : "0x" + outside_address;
    }

    public void setOutside_address(String outside_address) {
        this.outside_address = outside_address;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }



}
